<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ attribute name="hiddenLabel" required="false" rtexprvalue="true" description="Hidden Label" type="java.lang.Boolean"%>

<%@ attribute name="label" required="false" rtexprvalue="true" description="Label of text element"%>
<%@ attribute name="bindPath" required="true" rtexprvalue="true" description="Bind path of text element"%>
<%@ attribute name="cssStyle" required="false" rtexprvalue="true" description="CSS Style of form element"%>

<c:choose>
	<c:when test="${label == null || label == ''}">
		<c:set var="label" value="${name}" />
	</c:when>
</c:choose>

<c:if test="${!hiddenLabel}">
<li class="form_grid_label" style="${cssLabelStyle}">${label}</li>
<li class="form_grid_element" style="${cssElementlStyle}">
</c:if>
${bindPath}
<c:if test="${!hiddenLabel}">
</li>
</c:if>
